package org.example.innovate.common;

import lombok.Getter;

@Getter
public enum ResponseCode {
    SUCCESS(200, "请求成功"),
    INVALID_INPUT(400, "无效的输入"),
    UNAUTHORIZED(401, "未经授权"),
    NOT_FOUND(404, "未找到"),
    ERROR(500, "服务器内部错误");

    private final int code;
    private final String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
